/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function confirmDelete(periodId, periodName) {       
        
    $.get('../GetMessage',
            {mesId:"001"},
            function(responseData) {       
                //alert(responseData);
                $(responseData).find('Messenger').each(function(){                    
                    var MesId = $(this).find('Message').find('MesId').text();
                    var MesType = $(this).find('Message').find('MesType').text();
                    var MesDetail = $(this).find('Message').find('MesDetail').text();
                    //alert('MesId = '+MesId+' MesType = '+MesType+' MesDetail = '+MesDetail);                                       
                    
                    var result = confirm(MesDetail + ": " + periodName);
                    if (result == true) {
                        location.href = "JobPeriodDelete?periodId="+periodId;
                    }                     
                });
            }
    );                
}
